package cn.ithers.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Data
@Entity
@Table ( name ="tb_friends" )
public class FriendLink implements Serializable {

	@ApiModelProperty(value = "友链ID")
  	@Id
	private String id;

	@ApiModelProperty(value = "友情链接名称")
  	@Column(name = "name" )
	private String name;

	@ApiModelProperty(value = "友情链接logo")
  	@Column(name = "logo" )
	private String logo;

	@ApiModelProperty(value = "友情url")
  	@Column(name = "url" )
	private String url;

	@ApiModelProperty(value = "顺序")
  	@Column(name = "`order`" )
	private long order = 1;

	@ApiModelProperty(value = "友情链接状态(0表示不可用，1表示正常)")
  	@Column(name = "state" )
	private String state = "1";

	@ApiModelProperty(value = "友链创建时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "create_time" )
	private Date createTime;

	@ApiModelProperty(value = "友链更新时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "update_time" )
	private Date updateTime;



}
